package com.ruoyi.project.device.warehouse.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.device.warehouse.mapper.BasWarehouseMapper;
import com.ruoyi.project.device.warehouse.domain.BasWarehouse;
import com.ruoyi.project.device.warehouse.service.IBasWarehouseService;
import com.ruoyi.common.core.text.Convert;

/**
 * 仓库管理Service业务层处理
 * 
 * @author wld
 * @date 2023-04-04
 */
@Service
public class BasWarehouseServiceImpl implements IBasWarehouseService 
{
    @Autowired
    private BasWarehouseMapper basWarehouseMapper;

    /**
     * 查询仓库管理
     * 
     * @param warehouseId 仓库管理主键
     * @return 仓库管理
     */
    @Override
    public BasWarehouse selectBasWarehouseByWarehouseId(String warehouseId)
    {
        return basWarehouseMapper.selectBasWarehouseByWarehouseId(warehouseId);
    }

    /**
     * 查询仓库管理列表
     * 
     * @param basWarehouse 仓库管理
     * @return 仓库管理
     */
    @Override
    public List<BasWarehouse> selectBasWarehouseList(BasWarehouse basWarehouse)
    {
        return basWarehouseMapper.selectBasWarehouseList(basWarehouse);
    }

    /**
     * 新增仓库管理
     * 
     * @param basWarehouse 仓库管理
     * @return 结果
     */
    @Override
    public int insertBasWarehouse(BasWarehouse basWarehouse)
    {
        return basWarehouseMapper.insertBasWarehouse(basWarehouse);
    }

    /**
     * 修改仓库管理
     * 
     * @param basWarehouse 仓库管理
     * @return 结果
     */
    @Override
    public int updateBasWarehouse(BasWarehouse basWarehouse)
    {
        return basWarehouseMapper.updateBasWarehouse(basWarehouse);
    }

    /**
     * 批量删除仓库管理
     * 
     * @param warehouseIds 需要删除的仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteBasWarehouseByWarehouseIds(String warehouseIds)
    {
        return basWarehouseMapper.deleteBasWarehouseByWarehouseIds(Convert.toStrArray(warehouseIds));
    }

    /**
     * 删除仓库管理信息
     * 
     * @param warehouseId 仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteBasWarehouseByWarehouseId(String warehouseId)
    {
        return basWarehouseMapper.deleteBasWarehouseByWarehouseId(warehouseId);
    }
}
